﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    public class Person
    {
        protected string name;
        protected int age;
        protected string[] courses;

        public string Name
        {
            get
            {
                return age;
            }
            set
            {
                age = value;
            }
        }
        public Person(string name, int age)
        {
            this.name = name;
            this.age = age;
        }
        public Person(string name, int age, string[] courses)
        {
            this.name = name;
            this.age = age;
            if (courses == null || courses.Length <= 0)
            {
                Console.Write(string.Format("{0}", courses));
            }
            int i=courses.Length-1;
            for(i=0; i<courses.Length; i++){
                 if (i < courses.Length - 1)
                {
                    Console.Write(string.Format("{0},", courses[i]));
                }
                 else{
                     Console.WriteLine(string.Format("{0}",courses[i]));
                 }
            }
            Console.WriteLine();
            
        }
        public class Teacher : Person
        {
            private string duty;
        }
    }
    
}
